package com.lkhd.common.myemum;

/**
 * 门票枚举
 * 
 * @author 肖鹏
 * @date 2018-9-15 17:35:09
 * 	
 */
public enum TicketEnum {
	//门票状态
	UNPAID(0,"未支付"),
	HAVE_PAID(1,"已支付待参加"),
	HAVE_JOIN(2,"已参加未评价"),
	HAVE_EVALUATION(3,"已参加已评价"),
	HAVE_EXPIRED(4,"过期"),
	
	//异常
	NOMY(1000,"非法操作"),
	PAYFAIL(10001,"支付失败"),
	STOREZERO(10002,"库存不足"),
	DELFAIL(1003,"删除失败"),
	;
	
	/*
	 * code 状态值
	 */
	private Integer code;
	/*
	 * 状态说明
	 */
	private String message;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	private TicketEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

}
